package com.jason.bookworm.dao.pojo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("db1_bookware")
public class Book {
    @TableId("b_id")
    Integer id;
    @TableField(value = "b_name", insertStrategy = FieldStrategy.NOT_EMPTY)
    String name;
    @TableField(value = "b_author", insertStrategy = FieldStrategy.NOT_EMPTY)
    String author;
    @TableField(value = "b_press", insertStrategy = FieldStrategy.NOT_EMPTY)
    String press;
    @TableField("b_publishdate")
    String publishdate;
    @TableField("b_introduce")
    String introduce;
    @TableField("b_tail")
    String tail;
    @TableField(value = "b_type",insertStrategy = FieldStrategy.NOT_EMPTY)
    String type;
    @TableField("b_price")
    String price;
    @TableField("b_photo")
    Byte photo;
    @TableField(value = "b_inventory",insertStrategy = FieldStrategy.NOT_EMPTY)
    Integer inventory;
    @TableField("b_status")
    String status;
}
